Add documentation for the dotnet build -t|--target option to dotnet-build.md.#53673
Add documentation for the dotnet build -t|--target option to dotnet-build.md.#53673classyk12 wants to merge 5 commits into
Conversation
Co-authored-by: Copilot <copilot@github.com>
|
@dotnet-policy-service agree |
There was a problem hiding this comment.
Pull request overview
This pull request updates the dotnet build command documentation to cover the -t|--target option, which lets you run specific MSBuild targets (such as Clean) instead of the default build target.
Changes:
- Added
-t|--targetto thedotnet buildsynopsis. - Added a new Options entry describing
-t|--targetand provided example invocations. - Added an Examples entry showing
dotnet build -t:Clean.
| ```dotnetcli | ||
| dotnet build -t:Clean | ||
| dotnet build -t:Rebuild | ||
| dotnet build -t:Clean;Build | ||
| ``` |
|
All changes have been applied now. @gfoidl |
adegeo
left a comment
There was a problem hiding this comment.
Looking good! A few things to address.
Also, the dotnet run command has the same parameter support for -t|--target. We should update that article too.
Thats a good idea. whats the best way to go? Should this PR be merged first and then I can open a new PR for the dotnet-run.md addition for the -t|--target options? |
|
Editing the file in this PR is fine. I also accidentally removed that link to the MSBuild Targets. Oops! Additionally, please resolve the addressed comments that are in the review so that they unblock the PR. |
classyk12
left a comment
There was a problem hiding this comment.
All changes have been made. This is ready to be passed to other reviewers
Add documentation for the dotnet build -t|--target option to dotnet-build.md
Updated the dotnet build synopsis to include [-t|--target:]
Added a new options entry for -t|--target:
Included a short explanation and examples for using a specific MSBuild target
Added an example in the Examples section showing dotnet build -t:Clean
The dotnet build command accepts -t/--target, but the existing docs did not document it. This resolves missing documentation reported in issue #53658.
Verified the option syntax matches existing CLI documentation style
Confirmed the added examples are consistent with other dotnet build examples
Internal previews